package wei.xinya.pattern.behavioral.visitor;

public class VisitorPatternDemo {
    public static void main(String[] args) {
        ComputerPart computer = new Computer();
        computer.accept(new ComputerPartDisplayVisitor());

        Mouse mouse = new Mouse();
        mouse.accept(new ComputerPartDisplayVisitor());
    }
}
